const mongoose = require('mongoose')



module.exports = {
    connect() {
        mongoose.connect('mongodb://localhost:27017/oa', err => {
            if (err) return console.log('连接失败，请检查数据库是否开启');
            console.log('链接mongodb数据库成功');
        })
    }
}